package com.liugan.magic.sound;

import org.loon.framework.android.game.core.LRelease;
import org.loon.framework.android.game.media.AssetsSound;


public class ASound implements LRelease {

	private static ASound instance;
	private static AssetsSound s209;
	private static AssetsSound s212;
	private static AssetsSound s213;
	private static AssetsSound s214;
	private static AssetsSound s301;
	private static AssetsSound s38;
	private static AssetsSound s41;
	private static AssetsSound s42;
	private static AssetsSound s43;
	private static AssetsSound s46;
	public static AssetsSound getS209() {
		return s209;
	}

	public static AssetsSound getS212() {
		return s212;
	}

	public static AssetsSound getS213() {
		return s213;
	}

	public static AssetsSound getS214() {
		return s214;
	}

	public static AssetsSound getS301() {
		return s301;
	}

	public static AssetsSound getS38() {
		return s38;
	}

	public static AssetsSound getS41() {
		return s41;
	}

	public static AssetsSound getS42() {
		return s42;
	}

	public static AssetsSound getS43() {
		return s43;
	}

	public static AssetsSound getS46() {
		return s46;
	}

	public static AssetsSound getS473() {
		return s473;
	}

	public static AssetsSound getS56() {
		return s56;
	}

	public static AssetsSound getS599() {
		return s599;
	}

	public static AssetsSound getS610() {
		return s610;
	}

	public static AssetsSound getS617() {
		return s617;
	}

	public static AssetsSound getS618() {
		return s618;
	}

	public static AssetsSound getS96() {
		return s96;
	}

	public static AssetsSound getS1() {
		return s1;
	}

	public static AssetsSound getS2() {
		return s2;
	}

	private static AssetsSound s473;
	private static AssetsSound s56;
	private static AssetsSound s599;
	private static AssetsSound s610;
	private static AssetsSound s617;
	private static AssetsSound s618;
	private static AssetsSound s96;
	
	private static AssetsSound s1;
	private static AssetsSound s2;
	

	private ASound() {
		s209 = new AssetsSound("screensrc/sound/209.mp3");
		s212 = new AssetsSound("screensrc/sound/212.mp3");
		s213 = new AssetsSound("screensrc/sound/213.mp3");
		s214 = new AssetsSound("screensrc/sound/214.mp3");
		s301 = new AssetsSound("screensrc/sound/301.mp3");
		s38 = new AssetsSound("screensrc/sound/38.mp3");
		s41 = new AssetsSound("screensrc/sound/41.mp3");
		s42 = new AssetsSound("screensrc/sound/42.mp3");
		s43 = new AssetsSound("screensrc/sound/43.mp3");
		s46 = new AssetsSound("screensrc/sound/46.mp3");
		s473 = new AssetsSound("screensrc/sound/473.mp3");
		s56 = new AssetsSound("screensrc/sound/56.mp3");
		s599 = new AssetsSound("screensrc/sound/599.mp3");
		s610 = new AssetsSound("screensrc/sound/610.mp3");
		s617 = new AssetsSound("screensrc/sound/617.mp3");
		s618 = new AssetsSound("screensrc/sound/618.mp3");
		s96 = new AssetsSound("screensrc/sound/96.mp3");
		
		//66
		 s1 = new AssetsSound("screensrc/66sound/1.mp3");
		 s2 = new AssetsSound("screensrc/66sound/2.mp3");
		
	}

	public synchronized static ASound getInstance() {
		if (instance == null) {
			instance = new ASound();
		}
		return instance;
	}

	public synchronized void dispose() {
		s209.stop();
		s212.stop();
		s213.stop();
		s214.stop();
		s301.stop();
		s38.stop();
		s41.stop();
		s42.stop();
		s43.stop();
		s46.stop();
		s473.stop();
		s56.stop();
		s599.stop();
		s610.stop();
		s617.stop();
		s618.stop();
		s96.stop();
		//instance = null;
		//System.gc();
		s1.stop();
		s2.stop();
	}
	
	public void s209() {
		if (!s209.isPlaying())s209.play();
	}
	public void s212(){
		if (!s212.isPlaying())s212.play();
	}
	public void s213(){
		if (!s213.isPlaying())s213.play();
	}
	public void s214(){
		if (!s214.isPlaying())s214.play();
	}
	public void s301(){
		if (!s301.isPlaying())s301.play();
	}
	public void s38(){
		if (!s38.isPlaying())s38.play();
	}
	public void s41(){
		if (!s41.isPlaying())s41.play();
	}
	public void s42(){
		if (!s42.isPlaying())s42.play();
	}
	public void s43(){
		if (!s43.isPlaying())s43.play();
	}
	public void s46(){
		if (!s46.isPlaying())s46.play();
	}
	public void s473(){
		if (!s473.isPlaying())s473.play();
	}
	public void s56(){
		if (!s56.isPlaying())s56.play();
	}
	public void s599(){
		if (!s599.isPlaying())s599.play();
	}
	public void s610(){
		if (!s610.isPlaying())s610.play();
	}
	public void s617(){
		if (!s617.isPlaying()){s617.loop();s617.setLooping(true);s617.play();}
	}
	public void s618(){
		if (!s618.isPlaying())s618.play();
	}
	public void s96(){
		if (!s96.isPlaying())s96.play();
	}

	public void s1() {
		if (!s1.isPlaying()) s1.play();
	}
	public void s2() {
		if (!s2.isPlaying()) s2.play();
	}
	public synchronized void quiet() {
		s209.setVolume(0);
		s212.setVolume(0);
		s213.setVolume(0);
		s214.setVolume(0);
		s301.setVolume(0);
		s38.setVolume(0);
		s41.setVolume(0);
		s42.setVolume(0);
		s43.setVolume(0);
		s46.setVolume(0);
		s473.setVolume(0);
		s56.setVolume(0);
		s599.setVolume(0);
		s610.setVolume(0);
		s617.setVolume(0);
		s618.setVolume(0);
		s96.setVolume(0);
		//instance = null;
		//System.gc();
		s1.setVolume(0);
		s2.setVolume(0);
	}
	
	public synchronized void voice() {
		s209.setVolume(5);
		s212.setVolume(5);
		s213.setVolume(5);
		s214.setVolume(5);
		s301.setVolume(5);
		s38.setVolume(5);
		s41.setVolume(5);
		s42.setVolume(5);
		s43.setVolume(5);
		s46.setVolume(5);
		s473.setVolume(5);
		s56.setVolume(5);
		s599.setVolume(5);
		s610.setVolume(5);
		s617.setVolume(5);
		s618.setVolume(5);
		s96.setVolume(5);
		//instance = null;
		//System.gc();
		s1.setVolume(5);
		s2.setVolume(5);
	}
}
